Miles Sound System SDK 7.2a

Memory management under MacOS

Discussion

By default, Miles handles memory management under MacOS by calling the MacOS memory functions directly. You can, however, override the Miles allocation and freeing functions with the AIL_mem_use_malloc and AIL_mem_use_free functions.

By default, Miles tries to allocate memory in this order:

1) Miles first tries to allocate memory from the application's memory partition.

2) Next, Miles tries to allocate memory from the MultiFinder temporary memory block.

3) Finally, Miles will try to allocate memory from the temporary system memory pool.

Using this set of memory fallbacks, Miles will usually find the memory it needs no matter where it may be hiding.

Next Topic (Callbacks under MacOS)

Previous Topic (Filenames on MacOS)


Group: Overview for MacOS: Miles on Macintosh
Related Functions: AIL_mem_use_free, AIL_mem_use_malloc

For technical support, e-mail Miles3@radgametools.com
© Copyright 1991-2007 RAD Game Tools, Inc. All Rights Reserved.